if __name__ == "__main__":
    
    from config import *
    
    # Setup logger
    import logging
    
    import argparse
    parser = argparse.ArgumentParser(description="Startup Configuration")
    parser.add_argument("side", type=str, help="Start frontend/backend service", choices=["front", "back"])
    args = parser.parse_args()
    
    match args.side:
        case "front":
            frontendService.start()
            
        case "back":
            backendService.start()
            
        case _:
            logging.fatal("Error when parsing startup arguments")
